import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.Window;
import javax.swing.*;

class StringFrame extends JFrame{
	public StringFrame(){
		setTitle("Enter Word to Serch:");
		setSize(367,200);
		setResizable(false);
		centerWindow(this);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		JPanel winPanel = new StringPanel();
		this.add(winPanel);
	}
	private void centerWindow(Window w){
		Toolkit tk = Toolkit.getDefaultToolkit();
		Dimension d = tk.getScreenSize();
		setLocation ((d.width-w.getWidth())/2, (d.height-w.getHeight())/2);
	}

}
